-- id5db.lua
-- By Dr.NP <np@bsgroup.org>

-- Configure data and operator functions here
-- You can modify them on your mind

id5db = {}
-- id5db behaviors
id5db.mmap_storage_dir = "/home/np/id5db/default/"
id5db.queue_item_size = 1024
id5db.cmd_enable_sync = 0
id5db.cmd_hook = "delete"
id5db.log_file = "default.log"
id5db.last_id_query = "SELECT id FROM record ORDER BY id DESC LIMIT 1"

-- MySQL configuration
id5db.mysql_host = "localhost"
id5db.mysql_port = "0"
id5db.mysql_username = "root"
id5db.mysql_password = "123456"
id5db.mysql_database = "id5db"

function gen_sql(input)
	return "INSERT INTO test SET int = 1, char = 'hello'"
end

